package cn.fzkj.gulimall.product.feign;

import cn.fzkj.common.to.SkuReductionTo;
import cn.fzkj.common.to.SpuBoundsTo;
import cn.fzkj.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @DESCRIPTION
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    /** 保存商品积分信息 */
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    /** 保存商品sku积分信息 */
    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
